//小程序登录请求
import { http } from '@/utils/http'
import type { LoginResult } from '@/types/menber'
// 定义请求参数类型
type loginParame = {
  code: string
  encryptedData: string
  iv: string
}
// 正式请求路径
export const postLoginWwAPI = (data: loginParame) => {
  return http<LoginResult>({
    method: 'POST',
    url: '/login/wxMin',
    data,
  })
}
//测试请求路径
export const postLoginWwsimpleAPI = (phoneNumber: string) => {
  return http<LoginResult>({
    method: 'POST',
    url: '/login/wxMin/simple',
    data:{
      phoneNumber

    },
  })
}
